package com.myprocessing.gui.util;

import com.myprocessing.box.button.drag.DragCoord;

public class RadiusCoord extends Coord implements DragCoord {

	private int radius;

	public boolean isValid(Coord coord) {
		
		System.out.println("x: " + x + " y:" + y);
		System.out.println("x: " + coord.x + " y:" + coord.y);
		
		System.out.println("distance: "  + this.distance(coord));
		
		return (this.distance(coord) < radius);
		
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}
}
